/**
 * 充值api
 */
import instance from "@/utils/request";

//充值列表分页查询
export function GetRechargeListApi() {
    return instance.request({
        method: "get",
        url: `/recharge/setting/list`,
    })
}

//新增充值配置
export function AddRechargeListApi(data) {
    return instance.request({
        method: "post",
        url: `/recharge/setting/add`,
        data
    })
}

//获取充值配置
export function EchoRechargeListApi(rechargeId) {
    return instance.request({
        method: "get",
        url: `/recharge/setting/get/${rechargeId}`,
    })
}

//修改充值配置
export function EditRechargeListApi(data) {
    return instance.request({
        method: "post",
        url: `/recharge/setting/modify`,
        data
    })
}

//删除充值配置
export function DelRechargeListApi(rechargeId) {
    return instance.request({
        method: "DELETE",
        url: `/recharge/setting/del/${rechargeId}`,
    })
}